package com.ruoyi.project.data.service.impl;

import com.ruoyi.project.data.domain.DrugAllSalesRecords;
import com.ruoyi.project.data.domain.DrugSalesRecords;
import com.ruoyi.project.data.mapper.DatDrugsMapper;
import com.ruoyi.project.data.service.IDatDrugsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DatDrugsServiceImpl implements IDatDrugsService {
    @Autowired
    private DatDrugsMapper datDrugsMapper;
    @Override
    public List<DrugSalesRecords> findDrugSalesRecords(DrugSalesRecords drugSalesRecords) {
        List<DrugSalesRecords> list=datDrugsMapper.selectDrugSalesRecords(drugSalesRecords);
        return list;
    }

    @Override
    public List<DrugAllSalesRecords> findDrugAllSalesRecords(DrugAllSalesRecords drugAllSalesRecords) {
        List<DrugAllSalesRecords> list=datDrugsMapper.selectDrugAllSalesRecords(drugAllSalesRecords);
        return list;
    }
}
